<div class="content-side content-side-full">
    <ul class="nav-main">
        <li class="nav-main-item">
            <a class="nav-main-link{{ request()->is('dashboard') ? ' active' : '' }}" href="/dashboard">
                <i class="nav-main-link-icon si si-speedometer"></i>
                <span class="nav-main-link-name">Dashboard</span>
            </a>
        </li>
        <li class="nav-main-heading">Various</li>
        <li class="nav-main-item{{ request()->is('examples/*') ? ' open' : '' }}">
            <a class="nav-main-link nav-main-link-submenu" data-toggle="submenu" aria-haspopup="true" aria-expanded="true" href="#">
                <i class="nav-main-link-icon si si-bulb"></i>
                <span class="nav-main-link-name">Examples</span>
            </a>
            <ul class="nav-main-submenu">
                <li class="nav-main-item">
                    <a class="nav-main-link{{ request()->is('examples/plugin') ? ' active' : '' }}" href="/examples/plugin">
                        <span class="nav-main-link-name">Plugin</span>
                    </a>
                </li>
                <li class="nav-main-item">
                    <a class="nav-main-link{{ request()->is('examples/blank') ? ' active' : '' }}" href="/examples/blank">
                        <span class="nav-main-link-name">Blank</span>
                    </a>
                </li>
            </ul>
        </li>
        @can('art')
            <li class="nav-main-item{{ request()->is('art/*') ? ' open' : '' }}">
                <a class="nav-main-link nav-main-link-submenu" data-toggle="submenu" aria-haspopup="true" aria-expanded="true" href="#">
                    <i class="nav-main-link-icon si si-layers"></i>
                    <span class="nav-main-link-name">资讯管理</span>
                </a>
                <ul class="nav-main-submenu">
                    @can('art.category')
                        <li class="nav-main-item">
                            <a class="nav-main-link{{ request()->is('art/category*') ? ' active' : '' }}" href="/art/category">
                                <span class="nav-main-link-name">分类管理</span>
                            </a>
                        </li>
                    @endcan
                    @can('art.article')
                        <li class="nav-main-item">
                            <a class="nav-main-link{{ request()->is('art/article*') ? ' active' : '' }}" href="/art/article">
                                <span class="nav-main-link-name">文章管理</span>
                            </a>
                        </li>
                    @endcan
                </ul>
            </li>
        @endcan
        @can('sys')
        <li class="nav-main-heading">系统管理</li>
        <li class="nav-main-item{{ request()->is('perm/*') ? ' open' : '' }}">
            <a class="nav-main-link nav-main-link-submenu" data-toggle="submenu" aria-haspopup="true" aria-expanded="true" href="#">
                <i class="nav-main-link-icon si si-lock"></i>
                <span class="nav-main-link-name">后台权限管理</span>
            </a>
            <ul class="nav-main-submenu">
                @can('user')
                <li class="nav-main-item">
                    <a class="nav-main-link{{ request()->is('perm/user*') ? ' active' : '' }}" href="/perm/user">
                        <span class="nav-main-link-name">用户管理</span>
                    </a>
                </li>
                @endcan
                @can('role')
                <li class="nav-main-item">
                    <a class="nav-main-link{{ request()->is('perm/role*') ? ' active' : '' }}" href="/perm/role">
                        <span class="nav-main-link-name">角色管理</span>
                    </a>
                </li>
                @endcan
                @can('permission')
                <li class="nav-main-item">
                    <a class="nav-main-link{{ request()->is('perm/permission*') ? ' active' : '' }}" href="/perm/permission">
                        <span class="nav-main-link-name">权限管理</span>
                    </a>
                </li>
                @endcan
            </ul>
        </li>
        @endcan
    </ul>
</div>
